# -*- coding: utf-8 -*-
# @Time    : 2023/6/5 11:54
# @Author  : hy
# @Email   : 1596096369@qq.com
# @File    : runner.py
# @Software: PyCharm
import unittest
from config.config import CASE_PATH,REPORT_PATH
from BeautifulReport import BeautifulReport
from time import strftime
suite = unittest.defaultTestLoader.discover(CASE_PATH,pattern='test_*.py')
now = strftime('%Y%m%d%H%M%S')
BeautifulReport(suite).report(
    report_dir=REPORT_PATH,
    filename='下厨房-{}'.format(now),
    description='下厨房自动化测试报告'
)